<?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 do I identifying drug regimens with 4 drugs used as mono/dual/triple therapy? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-identifying-drug-regimens-with-4-drugs-used-as-mono/m-p/304459#M64804</link>
    <description>&lt;P&gt;If you claims data has information with patient id and one drug per record then the technique in this post: &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Summarize-overlapping-medications/m-p/304122#M64699" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Summarize-overlapping-medications/m-p/304122#M64699&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;is basically similar to what you are doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data goes over a long enough period where you have multiple similar claims then you may need to reduce to the above needed form with something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Create table temp as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; select distinct patient_id, drug&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; from claims data;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the data has multiple drugs per patient record then you will need to transform to the one drug per patient form. The method for that likely depends on your current data structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A further thing to keep in mind could be time. How would you tell if someone had been on a single treatment regimen for period of time and then shifted to the two or three drug regimen? And how do you want to report that? So the claim or service date may come into play but you'll need to determine the rule(s) involved.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 19:34:48 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-10-13T19:34:48Z</dc:date>
    <item>
      <title>How do I identifying drug regimens with 4 drugs used as mono/dual/triple therapy?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-identifying-drug-regimens-with-4-drugs-used-as-mono/m-p/304454#M64803</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have pharmacy claims data, specific to patients with RA. &amp;nbsp;There are 4 drugs I am interested (MTX, HCQ, SSZ, LEF). &amp;nbsp;These drugs can be used as mono therapy, dual therapy, or triple therapy, (dual and triple always include MTX). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regimens&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;MTX&lt;/LI&gt;&lt;LI&gt;HCQ&lt;/LI&gt;&lt;LI&gt;SSZ&lt;/LI&gt;&lt;LI&gt;LEF&lt;/LI&gt;&lt;LI&gt;MTX+HCQ&lt;/LI&gt;&lt;LI&gt;MTX+SSZ&lt;/LI&gt;&lt;LI&gt;MTX+LEF&lt;/LI&gt;&lt;LI&gt;MTX+HCQ+SSZ&lt;/LI&gt;&lt;LI&gt;MTX+HCQ+LEF&lt;/LI&gt;&lt;LI&gt;MTX+SSZ+LEF&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The data look like this:&lt;/P&gt;&lt;P&gt;PATID INDEX_DT DRUGName StartDate DaysSupply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I figure which regimen the patients are on? &amp;nbsp;I don't really care about switching. &amp;nbsp;I just need the intial regimen. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 19:22:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-identifying-drug-regimens-with-4-drugs-used-as-mono/m-p/304454#M64803</guid>
      <dc:creator>cbatzi01</dc:creator>
      <dc:date>2016-10-13T19:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identifying drug regimens with 4 drugs used as mono/dual/triple therapy?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-identifying-drug-regimens-with-4-drugs-used-as-mono/m-p/304459#M64804</link>
      <description>&lt;P&gt;If you claims data has information with patient id and one drug per record then the technique in this post: &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Summarize-overlapping-medications/m-p/304122#M64699" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Summarize-overlapping-medications/m-p/304122#M64699&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;is basically similar to what you are doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data goes over a long enough period where you have multiple similar claims then you may need to reduce to the above needed form with something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; Create table temp as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; select distinct patient_id, drug&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; from claims data;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the data has multiple drugs per patient record then you will need to transform to the one drug per patient form. The method for that likely depends on your current data structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A further thing to keep in mind could be time. How would you tell if someone had been on a single treatment regimen for period of time and then shifted to the two or three drug regimen? And how do you want to report that? So the claim or service date may come into play but you'll need to determine the rule(s) involved.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 19:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-identifying-drug-regimens-with-4-drugs-used-as-mono/m-p/304459#M64804</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-13T19:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identifying drug regimens with 4 drugs used as mono/dual/triple therapy?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-identifying-drug-regimens-with-4-drugs-used-as-mono/m-p/304517#M64820</link>
      <description>&lt;P&gt;Assuming that multiple-drug treatments are represented as many drugs starting on the same day, for tha same patient, you could do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=theData; by patId startDate drugName; run;

data want0;
length drugs $12;
do until(last.startDate);
	set theData; by patId startDate;
	drugs = catx("+", drugs, drugName);
	end;
run;

data want1;
set want0; by patId;
if first.patId;
drop drugName daysSupply;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Oct 2016 02:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-identifying-drug-regimens-with-4-drugs-used-as-mono/m-p/304517#M64820</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-10-14T02:57:39Z</dc:date>
    </item>
  </channel>
</rss>

