<?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: How to create a drug course using dates. in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424747#M13051</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/110575"&gt;@shasank&lt;/a&gt;&amp;nbsp;It's an interesting problem, but I find your explanation of the logic little inadequate. Hmm part of the reason is perhaps I am not smart. Either way, Please clarify the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;q1.&amp;nbsp;does every obs for each id have a line starting from line1......line&lt;STRONG&gt;N&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;q2.&amp;nbsp;&lt;SPAN&gt;So the number of lines for each id varies? for example, 9 for ID 1 and 4 for ID 3?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;q3 So when processing the last few obs(perhaps) for a particular id, the look up can only be prior dates for the reason there won't dates to look ahead&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 21:04:24 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-01-03T21:04:24Z</dc:date>
    <item>
      <title>How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424692#M13047</link>
      <description>&lt;P&gt;Hello SAS community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help with the following. Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;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t;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A+B&lt;/TD&gt;&lt;TD&gt;B+C+D&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;A+B+C&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;.&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st line:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Start date: First drug&lt;/LI&gt;&lt;LI&gt;Course: Any drug in the period start date + 10 days&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2nd line:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Start date: First drug NOT in 1st line&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Course&lt;/SPAN&gt;: Any drug in the period 3 days prior to start date of&amp;nbsp;&lt;SPAN&gt;First drug NOT in 1st line&lt;/SPAN&gt; &amp;nbsp;to 10 days after start date&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;3rd line:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Start date: First drug NOT in 2nd line&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Course&lt;/SPAN&gt;: Any drug in the period 3 days prior to start date of &lt;SPAN&gt;First drug NOT in 2nd line&amp;nbsp;&lt;/SPAN&gt;to 10 days after start date.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In other words,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st line&amp;nbsp; =&amp;nbsp; First drug + all drugs given within 10 days of 1st drug start date for ex.&amp;nbsp; suppose that A+B+C are with in 1st 10 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd line = if person gets any other drugs than the one given in 1st line For ex. C drug is added to drug course then 2nd line is all the drugs given 3 days prior to C drug start date and 10 days after C drug start date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3rd Line =&amp;nbsp;&lt;SPAN&gt;if person gets any other drugs than the one given in 2nd or 1st line For ex. D drug is added to drug course then 3rd line is all the drugs given 3 days prior to C drug start date and 10 days after D drug start date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I am clear about my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424692#M13047</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-03T20:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424716#M13048</link>
      <description>&lt;P&gt;You should provide an example of what the outcome would look like for that example data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;Course&lt;/SPAN&gt;: Any drug in the period 3 days prior to start date to 10 days after start date" isn't really clearly defined as you have a "start date" on every record.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424716#M13048</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-03T20:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424717#M13049</link>
      <description>Thank you for the suggestion .I will edit post with the reply.</description>
      <pubDate>Wed, 03 Jan 2018 20:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424717#M13049</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-03T20:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424728#M13050</link>
      <description>I took your suggestions and make necessary changes to the question. i hope this helps.</description>
      <pubDate>Wed, 03 Jan 2018 20:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424728#M13050</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-03T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424747#M13051</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/110575"&gt;@shasank&lt;/a&gt;&amp;nbsp;It's an interesting problem, but I find your explanation of the logic little inadequate. Hmm part of the reason is perhaps I am not smart. Either way, Please clarify the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;q1.&amp;nbsp;does every obs for each id have a line starting from line1......line&lt;STRONG&gt;N&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;q2.&amp;nbsp;&lt;SPAN&gt;So the number of lines for each id varies? for example, 9 for ID 1 and 4 for ID 3?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;q3 So when processing the last few obs(perhaps) for a particular id, the look up can only be prior dates for the reason there won't dates to look ahead&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 21:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424747#M13051</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-03T21:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424756#M13052</link>
      <description>Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;,&lt;BR /&gt;Thank you for your reply. You sound very smart based on your questions.&lt;BR /&gt;1) Yes every, Id will start from line 1 and will proceed to line 2 only if there is a change in the drug given. The change in the drug should trigger use to identify the course and mark it as a 2nd line and same goes for 3rd line&lt;BR /&gt;2) Yes, Each ID can have different number of lines.&lt;BR /&gt;3) Correct. The only flag we need is a change for the 1st line to flag as 2nd line and a change from 2nd line to flag as 3rd line and so on. Once we know what line it is we should identify what drugs are given during that line period.&lt;BR /&gt;&lt;BR /&gt;1st line are drugs given during 1st drug startdate +10 days is 1st line drug course.&lt;BR /&gt;2nd line are the drugs given when we flat a new drugs not in 1st line and all the drugs given 3 days prior to it and 10 days after it is 2nd line course.&lt;BR /&gt;3rd line is the same as 2nd line but should be compared to 2nd line course to flag a change.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jan 2018 21:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424756#M13052</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-03T21:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424766#M13053</link>
      <description>&lt;P&gt;Hmm still not clear. Anyway, can you explain the &lt;STRONG&gt;look up&lt;/STRONG&gt; for the just the one row&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;1st line&lt;/TD&gt;&lt;TD&gt;2nd line&lt;/TD&gt;&lt;TD&gt;3rd line&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A + B&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;A + C&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;A+D&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How you got the above and from where&lt;STRONG&gt; referring&lt;/STRONG&gt; to your &lt;STRONG&gt;HAVE&lt;/STRONG&gt; dataset?&lt;/P&gt;&lt;P&gt;For ID one there has to be 1st line----9th line?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 21:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424766#M13053</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-03T21:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424773#M13054</link>
      <description>Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;AS per my logic. When I find a drug that is not in 2nd line therapy I will flag it as 3rd line therapy. So here D is newly added drug to the patient. Now to identify the course of therapy - I have to check 3 days before and 10 days after D was started. Drug D was started on 28th July 2012 and 1 days prior to Drug D the patient received drug A and no drugs after Drug D. Now the 3rd Cycle course is A+D or D+A.</description>
      <pubDate>Wed, 03 Jan 2018 22:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424773#M13054</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-03T22:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424779#M13055</link>
      <description>&lt;P&gt;Hey, I am writing to apologise that I didn't get head start on your req as my brain isn't thinking well. I am off to classes at my college right now. But don;t worry, I will sincerely take a look later. Either way, You can be 100% percent, KSharp&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30082"&gt;@xia&lt;/a&gt; keshan will fire your needed answer the moment he sees this thread even if no else responds, He is my role model. I wish I could be like him. So wait for a while!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 23:06:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424779#M13055</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-03T23:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424953#M13060</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;Can you help me with this one?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 15:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424953#M13060</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-04T15:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424955#M13061</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, did the description help. I hope oyu got a chance to look at them.</description>
      <pubDate>Thu, 04 Jan 2018 16:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/424955#M13061</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-04T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425053#M13066</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; Can you help me with this question?</description>
      <pubDate>Thu, 04 Jan 2018 20:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425053#M13066</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-04T20:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425054#M13067</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; Can you help me with this question.??</description>
      <pubDate>Thu, 04 Jan 2018 20:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425054#M13067</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-04T20:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425343#M13089</link>
      <description>I am still searching for a solution to this question. Do you have time to have a peak at this question.&lt;BR /&gt;Thank you.</description>
      <pubDate>Fri, 05 Jan 2018 19:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425343#M13089</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-05T19:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425344#M13090</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;,&lt;BR /&gt;I would appreciate you help in this problem. Could you please let me know if there is a way to solve this.&lt;BR /&gt;Thank you.</description>
      <pubDate>Fri, 05 Jan 2018 19:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425344#M13090</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-05T19:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425346#M13091</link>
      <description>Hello Ballardw,&lt;BR /&gt;Did you get a chance to look at the question. If possible I would appreciate the help with solving this problem.&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Fri, 05 Jan 2018 19:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425346#M13091</guid>
      <dc:creator>shasank</dc:creator>
      <dc:date>2018-01-05T19:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425347#M13092</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/110575"&gt;@shasank&lt;/a&gt;&amp;nbsp;I am afraid I haven't got a clear understanding of your requirement at all to even get a head start to let my brain and fingers do the rest. Unfortunately, This is after looking into your description multiple times. Personally, I am disappointed too for not even being able to give a go. Well, this is where communication matters most. One of us isn't making it easy to help each other. So sorry!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 19:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425347#M13092</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-05T19:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drug course using dates.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425481#M13101</link>
      <description>&lt;P&gt;I can give you a little guidance, but I can't solve it.&amp;nbsp; I'm having trouble seeing how the output you post matches your description of what you want to achieve.&amp;nbsp; Regardless of what is needed, however, this looks like a case where the problem would become easier if you were to transpose the data.&amp;nbsp; Picture one observation per ID, with variables StartDate1 through StartDate20 and Drug1 through Drug20.&amp;nbsp; (Of course, 20 is an arbitrary number ... you need to create enough variables to hold the data for the patient with the largest number of dates.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While I rarely recommend transposing data into that form, this strikes me as a problem that would become easier if you were to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jan 2018 03:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-create-a-drug-course-using-dates/m-p/425481#M13101</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-01-06T03:39:50Z</dc:date>
    </item>
  </channel>
</rss>

