<?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 icd9 and icd 10 codes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/icd9-and-icd-10-codes/m-p/611376#M178173</link>
    <description>&lt;P&gt;Hi sas community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone know how I can array icd9 and icd10 codes? Below is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data obesity;&lt;BR /&gt;set colon.ip_colon;&lt;BR /&gt;array AllDiagCodes {15} $ dx1-dx15;&lt;BR /&gt;alcohol = 0;&lt;BR /&gt;do i = 1 to 15;&lt;BR /&gt;if AllDiagCodes{i} IN: (( "303", "980","E860", "291","3050", "7903") and ("F10", "R780", "T51", "O9931"))&lt;BR /&gt;then alcohol = 1;&lt;BR /&gt;end;&lt;BR /&gt;drop i;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 16:31:00 GMT</pubDate>
    <dc:creator>nturne</dc:creator>
    <dc:date>2019-12-12T16:31:00Z</dc:date>
    <item>
      <title>icd9 and icd 10 codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/icd9-and-icd-10-codes/m-p/611376#M178173</link>
      <description>&lt;P&gt;Hi sas community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone know how I can array icd9 and icd10 codes? Below is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data obesity;&lt;BR /&gt;set colon.ip_colon;&lt;BR /&gt;array AllDiagCodes {15} $ dx1-dx15;&lt;BR /&gt;alcohol = 0;&lt;BR /&gt;do i = 1 to 15;&lt;BR /&gt;if AllDiagCodes{i} IN: (( "303", "980","E860", "291","3050", "7903") and ("F10", "R780", "T51", "O9931"))&lt;BR /&gt;then alcohol = 1;&lt;BR /&gt;end;&lt;BR /&gt;drop i;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 16:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/icd9-and-icd-10-codes/m-p/611376#M178173</guid>
      <dc:creator>nturne</dc:creator>
      <dc:date>2019-12-12T16:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: icd9 and icd 10 codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/icd9-and-icd-10-codes/m-p/611420#M178185</link>
      <description>&lt;P&gt;You can't use AND in the list being used by the IN operator. This is logically equivalent:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if AllDiagCodes{i} IN: ("303","980","E860","291","3050","7903","F10","R780","T51","O9931") then alcohol = 1;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Dec 2019 18:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/icd9-and-icd-10-codes/m-p/611420#M178185</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-12T18:55:22Z</dc:date>
    </item>
  </channel>
</rss>

