<?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: Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137476#M2084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JUST NOTICED THAT THE TABLE PASTED WRONG INTO THE SAS DISCUSSION FORUM.&amp;nbsp; PLEASE REFER TO ATTACHED PDF INSTEAD!&lt;/P&gt;&lt;P&gt;THANKS AGAIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Nov 2013 01:56:06 GMT</pubDate>
    <dc:creator>mconover</dc:creator>
    <dc:date>2013-11-09T01:56:06Z</dc:date>
    <item>
      <title>Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137475#M2083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a database which contains ICD-9 codes but in a format without decimal places.&amp;nbsp; I'm trying to import a list of ICD-9 codes that does contain decimal places and match it up with the one that doesn't.&amp;nbsp; However I keep running into a problem of ambiguous dx codes in my database that could refer to two ICD-9s (one procedure and one diagnosis.&amp;nbsp; This is a well known and widely used database so I feel like I must be overlooking something obvious.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IN MY IMPORTED LIST:&lt;/STRONG&gt; normal ICD-9 codes with appropriate leading zeros and decimal.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IN MY DATABASE: &lt;/STRONG&gt;everything is left justified and decimals are implied at certain places in the string.&amp;nbsp; Leading zeros are inserted before the number to ensure that the decimal place is implied at the correct location. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;However, the rules differ for ICD-9 procedure codes and ICD-9 diagnosis codes&lt;/SPAN&gt; (and as a result a single code in my database could refer to a Dx &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt;&lt;/SPAN&gt; a Proc)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;ICD-9 procedure codes: the decimal is implied after the second digit&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;For example&lt;UL&gt;&lt;LI&gt;00.31 would be coded as 0031&lt;/LI&gt;&lt;LI&gt;01.5 would be coded as 015&lt;/LI&gt;&lt;LI&gt;01.50 would be coded as 0150&lt;/LI&gt;&lt;LI&gt;15.5 would be coded as 155&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;ICD-9 diagnosis codes: the decimal is implied after the third digit&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;For example&lt;UL&gt;&lt;LI&gt;014 would be coded as 014&lt;/LI&gt;&lt;LI&gt;014.1 would be coded as 0141&lt;/LI&gt;&lt;LI&gt;014.11 would be coded as 01411&lt;/LI&gt;&lt;LI&gt;012.0 would be coded as 0120&lt;/LI&gt;&lt;LI&gt;001.30 would be coded as 00130&lt;/LI&gt;&lt;LI&gt;140 would be coded as 140&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can tell, this still leaves ambiguity since ICD procedure and diagnosis codes can take on the same value in the database. Table 1 (pasted below and also attached) breaks down the many ways “14” can be coded in the data.&amp;nbsp; A number of them result in ambiguous codes (outlined in &lt;STRONG style="color: red;"&gt;RED&lt;/STRONG&gt;) in my database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since not all of these “14” codes actually exist, I provided examples of violations in the far right column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1. Ambiguous code combinations&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none;" width="376"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;PROC vs. DX&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" width="51"&gt;&lt;P align="center" style="text-align: center;"&gt;ICD-9 CODE&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" width="71"&gt;&lt;P align="center" style="text-align: center;"&gt;MarketScan code&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" width="85"&gt;&lt;P align="center" style="text-align: center;"&gt;Examples of ICD-9 codes actually in use&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" width="120"&gt;&lt;P align="center" style="text-align: center;"&gt;What happens if we just drop the decimal in SAS?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid windowtext 1.0pt; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;PROC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;00.14&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;0014&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;0014&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid red 3.0pt; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;PROC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;01.4&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;014 &lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid red 3.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;07.5&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;014&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid red 3.0pt; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;DX&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;P align="center" style="text-align: center;"&gt;014&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;014 &lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid red 3.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;P align="center" style="text-align: center;"&gt;075&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;014&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid red 3.0pt; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;PROC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;01.40&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;0140&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid red 3.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;01.20&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;0140&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid red 3.0pt; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;DX&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;014.0&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;0140&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid red 3.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;012.0&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;0140&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;DX&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;001.4&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;0014&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;0014&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;DX&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;001.40&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;00140&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;00140&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;DX&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;014.00&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;01400&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;01400&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid windowtext 1.0pt; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;PROC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;P align="center" style="text-align: center;"&gt;14&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;14 &lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;14&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid red 3.0pt; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;PROC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;14.0&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;140 &lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid red 3.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;14.0&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;140&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid red 3.0pt; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;DX&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;P align="center" style="text-align: center;"&gt;140&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;140 &lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid red 3.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;P align="center" style="text-align: center;"&gt;140&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;140&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid red 3.0pt; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;PROC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;14.00&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;1400&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid red 3.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;14.00&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;1400&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: solid red 3.0pt; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;DX&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;140.0&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;1400&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid red 3.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;140.0&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid red 3.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;1400&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" width="49"&gt;&lt;P align="center" style="text-align: center;"&gt;DX&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;140.00&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="71"&gt;&lt;P&gt;14000&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="85"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="120"&gt;&lt;P&gt;14000&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help/advice/guidance in advance.&amp;nbsp; Don't know what I'd do with out you guys...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 01:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137475#M2083</guid>
      <dc:creator>mconover</dc:creator>
      <dc:date>2013-11-09T01:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137476#M2084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JUST NOTICED THAT THE TABLE PASTED WRONG INTO THE SAS DISCUSSION FORUM.&amp;nbsp; PLEASE REFER TO ATTACHED PDF INSTEAD!&lt;/P&gt;&lt;P&gt;THANKS AGAIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 01:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137476#M2084</guid>
      <dc:creator>mconover</dc:creator>
      <dc:date>2013-11-09T01:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137477#M2085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have any subject matter expertise here but on a general level from what you describe and show us: Yes, removing the dot leads to ambiguity so in order to match the two data sources you need an additional field giving you the information whether a code is "DX" or "PROC".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 06:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137477#M2085</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-09T06:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137478#M2086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not understand why you are having trouble.&lt;/P&gt;&lt;P&gt;Normally your patient data would have had DX codes and PROC codes collected into different variables.&lt;/P&gt;&lt;P&gt;Normally your ICD9 look-up table would separate tables for DX and PROC codes (or at least another variable to indicate which type it is).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible that someone has stored the values without periods into a numeric variable instead of a character variable? (perhaps by accidentally running it through Excel instead of a real database)&amp;nbsp; If so that will mess up any code that starts with zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 23:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137478#M2086</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-09T23:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137479#M2087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do have separate fields for procedures that are identified using CPT codes.&amp;nbsp; However, ICD-9 consists of both ICD-9 diagnosis codes and ICD-9 procedure codes.&amp;nbsp; So as a result, the "diagnosis" field in my data can actually contain codes that refer to procedures, not diagnoses.&amp;nbsp; I see what you mean about Excel but the coding scheme is designed by the compilers of the data set, not the result of accidentally changing the formatting.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the time you've all spent thinking about my problem.&amp;nbsp; I'll get to the bottom of this in the next few days and will be sure to post what I learn on this discussion thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2013 17:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137479#M2087</guid>
      <dc:creator>mconover</dc:creator>
      <dc:date>2013-11-10T17:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137480#M2088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm curious about your question since it would appear that we have all of the components that we need to accurately record each of the values.&amp;nbsp; We have a field which tells us whether this is a diagnosis or procedure, we have the rule indicating whether or not we should position the decimal after the third or second character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are trying to match the icd-9 column with the market scan value?&amp;nbsp; why not drop the decimal in your transform then use the positional logic based on proc vs. dx to recode the variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i missed something critical i apologize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy to work up an example if that is really what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 13:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137480#M2088</guid>
      <dc:creator>gregorysnelson</dc:creator>
      <dc:date>2013-11-11T13:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137481#M2089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; You surmise correctly. Each claim I have refers to a single procedure/service with a number of associated diagnosis codes attached.&amp;nbsp; As far as I know, I do not have a field which tells me whether any specific diagnosis field (ICD-9) is describing a procedure or a diagnosis and so do not have the information to determine when to apply my two digit decimal rule vs. my three digit decimal rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137481#M2089</guid>
      <dc:creator>mconover</dc:creator>
      <dc:date>2013-11-11T14:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137482#M2090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it, i saw your table with the first column and thot that was the field you could use.&amp;nbsp; it would be pretty tough without knowing whether it was a dx or not.&amp;nbsp; In the market scan data, we usually have dx1 -- dx15 and similar fields for procs. I would go back to the data owner and see if there is another option to understanding logic that you should use as others have suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137482#M2090</guid>
      <dc:creator>gregorysnelson</dc:creator>
      <dc:date>2013-11-11T14:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137483#M2091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are really getting data from MarketScan then the DX fields should have diagnosis codes and the PROC fields will have procedure codes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:58:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137483#M2091</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-11T14:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ambiguous ICD-9 (procedure &amp; diagnosis) coding scheme in my database leads  to double-matching?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137484#M2092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My apologies to all.&amp;nbsp; I have finally figured this out and realize many of you were giving me the right answer all along but I didn't know enough to recognize it.&amp;nbsp; As was pointed out (repeatedly) procedure codes go in the procedure field, diagnosis codes in the diagnosis field.&amp;nbsp; I assumed all ICD-9 codes appeared in the same field.&amp;nbsp; Rather, my diagnosis field can only hold ICD-9 diagnosis codes.&amp;nbsp; My procedure field can contain ICD-9 procedure codes, CPT codes, or HCPCS codes.&amp;nbsp; I have an additional variable which refers to which type of code is being used in the procedure field.&amp;nbsp; Because CPT and HCPCS codes always have 5 digits and ICD-9 procedure codes always have four, the additional indicator variable isn't even required to differentiate between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone who was willing to bear with me on this one.&amp;nbsp; You guys are amazing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Ambiguous-ICD-9-procedure-diagnosis-coding-scheme-in-my-database/m-p/137484#M2092</guid>
      <dc:creator>mconover</dc:creator>
      <dc:date>2013-11-11T16:35:10Z</dc:date>
    </item>
  </channel>
</rss>

