<?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: treatment lines in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/treatment-lines/m-p/462375#M117714</link>
    <description>&lt;P&gt;Please post example data (in a data step, see my footnotes) and the expected result.&lt;/P&gt;</description>
    <pubDate>Tue, 15 May 2018 14:50:26 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-05-15T14:50:26Z</dc:date>
    <item>
      <title>treatment lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/treatment-lines/m-p/462372#M117713</link>
      <description>&lt;P&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make treatment lines according to a rule for my dataset.&lt;/P&gt;&lt;P&gt;If a patient is being treated with "a" treatment and that is his first treatment , then the Start Date for that&amp;nbsp; ("a")treatment is considered as the first episode treatment. Now the second treatment is defined as the treatment occurring 6 months after the StartDate of the first treatment. if the second treatment starts in the middle of the 6 moth duration then its StartDate is considered as StartDate of the first treatment +180 (i,e 6 months after the start of the first treatment). We need to find the episode start dates for 10 different kinds of treatments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any kind of help will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do write this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think we might have to use retain function for this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 14:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/treatment-lines/m-p/462372#M117713</guid>
      <dc:creator>manya92</dc:creator>
      <dc:date>2018-05-15T14:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: treatment lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/treatment-lines/m-p/462375#M117714</link>
      <description>&lt;P&gt;Please post example data (in a data step, see my footnotes) and the expected result.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 14:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/treatment-lines/m-p/462375#M117714</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-15T14:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: treatment lines</title>
      <link>https://communities.sas.com/t5/SAS-Programming/treatment-lines/m-p/462381#M117716</link>
      <description>&lt;P&gt;Obs Pat_id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Diag_date&amp;nbsp; &amp;nbsp; LineName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StartDate EndDate&amp;nbsp; episode datebirrth year episode year age&lt;/P&gt;&lt;P&gt;1 FDD586EC54DFF 05/05/2016 Gemcitabine,Paclitaxel Protein-Bound 05/16/2016 05/26/2016 05/16/2016 1956 2016 60&lt;BR /&gt;2 FCF06DFFE96D3 06/09/2016 Gemcitabine,Paclitaxel Protein-Bound 07/22/2016 08/22/2016 07/22/2016 1942 2016 74&lt;BR /&gt;3 F468936773849 10/15/2015 FOLFIRI 01/13/2017 06/05/2017 10/19/2015 1955 2015 60&lt;BR /&gt;4 F468936773849 10/15/2015 Gemcitabine,Paclitaxel Protein-Bound 10/19/2015 01/12/2017 10/19/2015 1955 2015 60&lt;BR /&gt;5 F91E7F27902F2 07/23/2015 FOLFOX 04/11/2017 07/22/2017 08/17/2015 1958 2015 57&lt;BR /&gt;6 F91E7F27902F2 07/23/2015 Fluorouracil,Irinotecan Liposomal,Leucovorin 09/27/2016 04/10/2017 08/17/2015 1958 2015 57&lt;BR /&gt;7 F91E7F27902F2 07/23/2015 Gemcitabine,Paclitaxel Protein-Bound 08/17/2015 09/26/2016 08/17/2015 1958 2015 57&lt;BR /&gt;8 FC72D24D879B2 09/09/2016 FOLFOX 01/11/2017 05/30/2017 09/27/2016 1933 2016 83&lt;BR /&gt;9 FC72D24D879B2 09/09/2016 Fluorouracil,Irinotecan Liposomal,Leucovorin 05/31/2017 01/02/2018 09/27/2016 1933 2016 83&lt;BR /&gt;10 FC72D24D879B2 09/09/2016 Gemcitabine,Paclitaxel Protein-Bound 09/27/2016 01/10/2017 09/27/2016 1933 2016 83&lt;BR /&gt;11 FA6DB21197963 01/04/2016 FOLFIRINOX 01/29/2016 03/24/2018 01/29/2016 1951 2016 65&lt;BR /&gt;12 F985921E439A3 05/08/2014 FOLFOX 05/28/2014 08/31/2014 05/28/2014 1935 2014 79&lt;BR /&gt;13 FC2B6C5BFDA37 08/06/2015 FOLFIRINOX 09/10/2015 02/02/2016 09/10/2015 1943 2015 72&lt;BR /&gt;14 FAE07E0051C78 11/17/2015 FOLFIRINOX 12/08/2015 04/20/2017 12/08/2015 1945 2015 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what my resullt looks like but i want to see that for id&amp;nbsp;F468936773849&amp;nbsp; the start date for FOLFIRI is 01/13/2017 and for&amp;nbsp;Gemcitabine,Paclitaxel Protein-Bound it is 10/19/2015.&lt;/P&gt;&lt;P&gt;&amp;nbsp;it shouold be differnt for differnet treatments and also follow the episode rule of 6 months, so for example for id:-&amp;nbsp;F91E7F27902F2 the patinet is undergoing 3&amp;nbsp; differnet treatments , I want to see theStartdate for each treatment it, for FOLFOX the epideosde start date should be&amp;nbsp; 04/11/2017 adn not&amp;nbsp; 08/17/2015. SAS is taking the earliest startdate for the patient accoridng to his first treatment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 15:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/treatment-lines/m-p/462381#M117716</guid>
      <dc:creator>manya92</dc:creator>
      <dc:date>2018-05-15T15:02:27Z</dc:date>
    </item>
  </channel>
</rss>

