<?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: Hospital Discharge Data ICD-10 Code Shortcut in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hospital-Discharge-Data-ICD-10-Code-Shortcut/m-p/392307#M277736</link>
    <description>&lt;P&gt;If you have a data set (or even just a list) with the codes then create a custom format that will mark those as "Suicide" and every thing else as "Non-suicide" or whatever term you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc format library=work;&lt;/P&gt;
&lt;P&gt;value $suicide&lt;/P&gt;
&lt;P&gt;'T401X&lt;STRONG&gt;2&lt;/STRONG&gt;A' = 'Suicide'&lt;/P&gt;
&lt;P&gt;other = 'Non-Suicide'&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;A data set can work to make a cntlin data set with the formatname values for start, label and a little extra code to add the "other".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a data step you could use thing such as&lt;/P&gt;
&lt;P&gt;If (put(code,$suicide.) = 'Suicide' then ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may search the internet for SAS format ICD-10 as I have heard of number of projects working on bits of this but whether they have your specific need ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2017 17:58:10 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-08-31T17:58:10Z</dc:date>
    <item>
      <title>Hospital Discharge Data ICD-10 Code Shortcut</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hospital-Discharge-Data-ICD-10-Code-Shortcut/m-p/392195#M277735</link>
      <description>&lt;P&gt;Currently writing a program to extract suicide attempts from a 2016 outpatient hospital discharge file. &amp;nbsp;In years past, with ICD-9, an e-code of E950-E959 indicated suicide attempts; easy to extract.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now with ICD-10, there are ~300 codes that could indicate intentional self-harm/suicide. &amp;nbsp;I have an array written to look for these codes over all of the diagnosis fields; however, I am curious to see if there is a way to consolidate the program without writing out all of these codes. &amp;nbsp;The major problem is that the intentional self harm designation is embedded within a range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: &amp;nbsp;The code for Poisoning by heroin, intentional self-harm is T401X&lt;STRONG&gt;2&lt;/STRONG&gt;A. &amp;nbsp;But, there are also codes for accidental (T401X&lt;STRONG&gt;1&lt;/STRONG&gt;A), assault (T401X&lt;STRONG&gt;3&lt;/STRONG&gt;A) and undetermined (T401X&lt;STRONG&gt;4&lt;/STRONG&gt;A) poisonings that I don't need, prohibiting any use of &lt;U&gt;if dx in : ('T401X')&lt;/U&gt;, which would extract the three codes I don't need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Multiply this by 300 or so codes, and that becomes a long program. &amp;nbsp;Especially when the previous one was if ecode in : ('E95') &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any work around would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 13:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hospital-Discharge-Data-ICD-10-Code-Shortcut/m-p/392195#M277735</guid>
      <dc:creator>cgray</dc:creator>
      <dc:date>2017-08-31T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hospital Discharge Data ICD-10 Code Shortcut</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hospital-Discharge-Data-ICD-10-Code-Shortcut/m-p/392307#M277736</link>
      <description>&lt;P&gt;If you have a data set (or even just a list) with the codes then create a custom format that will mark those as "Suicide" and every thing else as "Non-suicide" or whatever term you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc format library=work;&lt;/P&gt;
&lt;P&gt;value $suicide&lt;/P&gt;
&lt;P&gt;'T401X&lt;STRONG&gt;2&lt;/STRONG&gt;A' = 'Suicide'&lt;/P&gt;
&lt;P&gt;other = 'Non-Suicide'&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;A data set can work to make a cntlin data set with the formatname values for start, label and a little extra code to add the "other".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a data step you could use thing such as&lt;/P&gt;
&lt;P&gt;If (put(code,$suicide.) = 'Suicide' then ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may search the internet for SAS format ICD-10 as I have heard of number of projects working on bits of this but whether they have your specific need ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 17:58:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hospital-Discharge-Data-ICD-10-Code-Shortcut/m-p/392307#M277736</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-31T17:58:10Z</dc:date>
    </item>
  </channel>
</rss>

