<?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: Programming specifications in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Programming-specifications/m-p/50713#M1401</link>
    <description>This shouldn't be too difficult, unless if you data is structured in an odd way.&lt;BR /&gt;
You can use lag or retain to check if the encounter is to be counted, and retain to keep track of the number of qualifying encounter per patient. When reading the last record for each patient, just out the ones that has 3 or more qualifying encounters.&lt;BR /&gt;
&lt;BR /&gt;
Good luck!&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
    <pubDate>Fri, 03 Jul 2009 12:32:52 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2009-07-03T12:32:52Z</dc:date>
    <item>
      <title>Programming specifications</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Programming-specifications/m-p/50712#M1400</link>
      <description>I've encountered a metric spec in one of our incentive program specifications which I've never had to program before.  I can't come up with any pragmatic method that will render a solution.&lt;BR /&gt;
&lt;BR /&gt;
The wording is as follows:&lt;BR /&gt;
"Number of patients as defined in the eligible population for whom 3 or more professional encounters exist that are at least 7 days apart."&lt;BR /&gt;
&lt;BR /&gt;
I've tried using lag,lag2,lagn.... functions to do this, but this would require hundreds of lines of code to accomodate patients with a dozen or more encounter dates.&lt;BR /&gt;
&lt;BR /&gt;
Any help is appreciated.  Thank you.</description>
      <pubDate>Wed, 01 Jul 2009 20:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Programming-specifications/m-p/50712#M1400</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-01T20:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Programming specifications</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Programming-specifications/m-p/50713#M1401</link>
      <description>This shouldn't be too difficult, unless if you data is structured in an odd way.&lt;BR /&gt;
You can use lag or retain to check if the encounter is to be counted, and retain to keep track of the number of qualifying encounter per patient. When reading the last record for each patient, just out the ones that has 3 or more qualifying encounters.&lt;BR /&gt;
&lt;BR /&gt;
Good luck!&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Fri, 03 Jul 2009 12:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Programming-specifications/m-p/50713#M1401</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-07-03T12:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Programming specifications</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Programming-specifications/m-p/50714#M1402</link>
      <description>Can you give us an example of your data ?</description>
      <pubDate>Fri, 03 Jul 2009 13:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Programming-specifications/m-p/50714#M1402</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2009-07-03T13:03:35Z</dc:date>
    </item>
  </channel>
</rss>

