<?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: matching across multiple ICD9 codes per patient in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/matching-across-multiple-ICD9-codes-per-patient/m-p/75053#M21766</link>
    <description>Thank you Scott for the suggestions! I will post again should I run into further issues.</description>
    <pubDate>Sun, 22 Feb 2009 23:21:06 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-02-22T23:21:06Z</dc:date>
    <item>
      <title>matching across multiple ICD9 codes per patient</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/matching-across-multiple-ICD9-codes-per-patient/m-p/75051#M21764</link>
      <description>Hello All-&lt;BR /&gt;
&lt;BR /&gt;
I have one row per patient and for each row I have up to 10 ICD codes (each code is a variable/column, e.g. ICD1, ICD2, ..., ICD10) and corresponding ICD text for each of the codes.   I am interested in identifying, for each patient, the ICD9 code(s) that match any of the codes that I have from a master list of codes. Then I want to create a new variable, for each row, that contains the codes that matched along with the corresponding text.  &lt;BR /&gt;
&lt;BR /&gt;
Is this an issues that can be managed using an array? &lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance-</description>
      <pubDate>Sun, 22 Feb 2009 17:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/matching-across-multiple-ICD9-codes-per-patient/m-p/75051#M21764</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-22T17:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: matching across multiple ICD9 codes per patient</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/matching-across-multiple-ICD9-codes-per-patient/m-p/75052#M21765</link>
      <description>An array could be used to parse through the ICD codes and using a SAS format and a PUT function to compare each ICD variable against your master list of codes.  Then as you process through the ICD codes, if you find a match by using the test, such as &lt;BR /&gt;
&lt;BR /&gt;
MATCH = PUT(ICD,$icd_master.);&lt;BR /&gt;
&lt;BR /&gt;
Then you append each of the matching codes to a new combined-matching-values variable that are in your master list.&lt;BR /&gt;
&lt;BR /&gt;
So, I prefer to build the $icd_master format with SAS PROC FORMAT, and as shown using the PUT function to test for a match.  Using a SAS format for the master list is more flexible for DATA step processing in my opinion.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 22 Feb 2009 20:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/matching-across-multiple-ICD9-codes-per-patient/m-p/75052#M21765</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-02-22T20:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: matching across multiple ICD9 codes per patient</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/matching-across-multiple-ICD9-codes-per-patient/m-p/75053#M21766</link>
      <description>Thank you Scott for the suggestions! I will post again should I run into further issues.</description>
      <pubDate>Sun, 22 Feb 2009 23:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/matching-across-multiple-ICD9-codes-per-patient/m-p/75053#M21766</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-22T23:21:06Z</dc:date>
    </item>
  </channel>
</rss>

