<?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: A better way for CPT coding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-better-way-for-CPT-coding/m-p/570406#M160831</link>
    <description>&lt;P&gt;See&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings09/056-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/056-2009.pdf&lt;/A&gt;&amp;nbsp;for more details.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 22:43:58 GMT</pubDate>
    <dc:creator>ScottBass</dc:creator>
    <dc:date>2019-07-01T22:43:58Z</dc:date>
    <item>
      <title>A better way for CPT coding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-better-way-for-CPT-coding/m-p/570390#M160826</link>
      <description>&lt;P&gt;Hello programmers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to create a dichotomous 0, 1 variable for CVD death.&amp;nbsp; If the cause of death is between codes&amp;nbsp; '410' and '41499' then the person has CVD death.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My codes are attached.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data xyz;
input  id death $ ;
datalines;
1  195 
19  414  
26  431  
27  414  
29  414  
40  414  
; run;


data abc; set xyz;
if death = '410' then Dix= 1;
if death= '411' then Dix=1;
If death= '412' then Dix=1;
If death= '413' then Dix=1;
If death='414' then Dix=1;
else Dix=0; RUN;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code worked because i checked the CVD codes to see that there were only codes '410' '411' '412' '413' and '414'. Sometimes there may be '41099' '41080' '41499' etc . Is there a better way i could write this code so that it checks every code without me having to do it in this pattern?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 20:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-better-way-for-CPT-coding/m-p/570390#M160826</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2019-07-01T20:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: A better way for CPT coding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-better-way-for-CPT-coding/m-p/570404#M160830</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Dix = (death in: ('410','411','412','413','414'));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 22:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-better-way-for-CPT-coding/m-p/570404#M160830</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-07-01T22:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: A better way for CPT coding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-better-way-for-CPT-coding/m-p/570406#M160831</link>
      <description>&lt;P&gt;See&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings09/056-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/056-2009.pdf&lt;/A&gt;&amp;nbsp;for more details.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 22:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-better-way-for-CPT-coding/m-p/570406#M160831</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-07-01T22:43:58Z</dc:date>
    </item>
  </channel>
</rss>

