<?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 Extracting dosage amount from generic drug name in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-dosage-amount-from-generic-drug-name/m-p/294412#M60049</link>
    <description>&lt;P&gt;The data I am working on are pharmacy claims and unfortunately, for some of the more complicated dosages like: Acetaminophen w/ Codeine Soln 120-12 MG/5ML, there is no dosage unit information.&amp;nbsp; I am looking to extract the 12 MG/5ML portion so I can calculate the MG/ML amount for further calculations.&amp;nbsp; I've tried using SCAN, but it's not feasible to specificy the exact string since some of the names have shorter or longer number of strings.&amp;nbsp; Is there another method I can use or is there an available list somewhere that generates the dosage per ML I don't know about?&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2016 14:56:43 GMT</pubDate>
    <dc:creator>appleorange</dc:creator>
    <dc:date>2016-08-26T14:56:43Z</dc:date>
    <item>
      <title>Extracting dosage amount from generic drug name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-dosage-amount-from-generic-drug-name/m-p/294412#M60049</link>
      <description>&lt;P&gt;The data I am working on are pharmacy claims and unfortunately, for some of the more complicated dosages like: Acetaminophen w/ Codeine Soln 120-12 MG/5ML, there is no dosage unit information.&amp;nbsp; I am looking to extract the 12 MG/5ML portion so I can calculate the MG/ML amount for further calculations.&amp;nbsp; I've tried using SCAN, but it's not feasible to specificy the exact string since some of the names have shorter or longer number of strings.&amp;nbsp; Is there another method I can use or is there an available list somewhere that generates the dosage per ML I don't know about?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 14:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extracting-dosage-amount-from-generic-drug-name/m-p/294412#M60049</guid>
      <dc:creator>appleorange</dc:creator>
      <dc:date>2016-08-26T14:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting dosage amount from generic drug name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-dosage-amount-from-generic-drug-name/m-p/294443#M60050</link>
      <description>&lt;PRE&gt;

data have;
infile cards truncover;
input x $100.;
cards;
Acetaminophen w/ Codeine Soln 120-12 MG/5ML, there is no dosage unit information
;
run;
data want;
 set have;
pid=prxparse('/\d+\s*MG\/\d+ML/i');
s=1;
e=length(x);
call prxnext(pid,s,e,x,p,l);
do while(p&amp;gt;0);
 found=substr(x,p,l);
 output;
 call prxnext(pid,s,e,x,p,l);
end;
keep found;
run;

&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Aug 2016 15:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extracting-dosage-amount-from-generic-drug-name/m-p/294443#M60050</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-26T15:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting dosage amount from generic drug name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-dosage-amount-from-generic-drug-name/m-p/294469#M60051</link>
      <description>&lt;P&gt;Is there a consistent pattern to your data such as the - character between the drug description and the dosage information?&lt;/P&gt;
&lt;P&gt;If so then SCAN would work if that is the only hyphen:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;drugName= scan(variable,'-',1);&lt;/P&gt;
&lt;P&gt;doseInfo&amp;nbsp;&amp;nbsp; = scan(variable,'-',2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have worked with just enough drug information to sympathize with likely to be poorly structured data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:50:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extracting-dosage-amount-from-generic-drug-name/m-p/294469#M60051</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-26T16:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting dosage amount from generic drug name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-dosage-amount-from-generic-drug-name/m-p/294475#M60053</link>
      <description>&lt;P&gt;Yes, exactly.&amp;nbsp; I ended up finding a calculator developped by&amp;nbsp;&lt;STRONG&gt;Prescription Drug Monitoring Program Training and Technical Assistance Center (PDMP TTAC)&lt;/STRONG&gt; that has a spreadsheet within the tool with the dosage strength information for patches, solutions, etc for opioids. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think all of the drug name info. are formated like that, yes.&amp;nbsp; So although I did find a shortcut with the tool, I will try the scan method which might help for all drug classes, not just opioids.&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 17:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extracting-dosage-amount-from-generic-drug-name/m-p/294475#M60053</guid>
      <dc:creator>appleorange</dc:creator>
      <dc:date>2016-08-26T17:20:12Z</dc:date>
    </item>
  </channel>
</rss>

