<?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: Claim can have certain diagnosis code but not a particular code in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638774#M21605</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input claimnumber code;
cards;
101 0260
101 0261
101 0262
101 0865
102 0260
102 0261
102 0560
;

proc sql;
create table want as select * from have where claimnumber not in (select claimnumber from have where code=0560);
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Apr 2020 19:07:59 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2020-04-09T19:07:59Z</dc:date>
    <item>
      <title>Claim can have certain diagnosis code but not a particular code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638759#M21601</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to select claims which have certain diagnosis code but should not a have a particular code within the submitted claim.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Condition -&amp;nbsp;&lt;/P&gt;&lt;P&gt;A claim can have Codes in ('0260','0261','0262','0263')&lt;/P&gt;&lt;P&gt;but should not have code ('560')&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 18:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638759#M21601</guid>
      <dc:creator>Divya12</dc:creator>
      <dc:date>2020-04-09T18:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Claim can have certain diagnosis code but not a particular code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638760#M21602</link>
      <description>&lt;P&gt;You might want to provide some example of what the data looks like and what you actually expect the output to look like.&lt;/P&gt;
&lt;P&gt;For instance, we cannot tell if you are adding one or more variables or keeping/removing records from a data set.&lt;/P&gt;
&lt;P&gt;Does each record have exactly one code variable to compare or are there multiple codes?&lt;/P&gt;
&lt;P&gt;Some coding systems with diagnosis may also have a decimal portion such as 0260.1 0260.2 or similar. If your values look like this then are you comparing the whole value or just the base part?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 18:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638760#M21602</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-09T18:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Claim can have certain diagnosis code but not a particular code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638764#M21604</link>
      <description>&lt;P&gt;This is how the table will look like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;claimnumber&lt;/TD&gt;&lt;TD&gt;code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;0260&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;0261&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;0262&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;0865&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;102&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;0260&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;102&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;0261&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;102&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;0560&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Output&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;claimnumber&lt;/TD&gt;&lt;TD&gt;code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;0260&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;0261&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;0262&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;0865&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here we will not be selecting claim 102 because it has '0560' code in it but we will select 101 as it has codes which are&amp;nbsp; in &lt;SPAN&gt;&amp;nbsp;('0260','0261','0262','0263')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 18:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638764#M21604</guid>
      <dc:creator>Divya12</dc:creator>
      <dc:date>2020-04-09T18:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Claim can have certain diagnosis code but not a particular code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638774#M21605</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input claimnumber code;
cards;
101 0260
101 0261
101 0262
101 0865
102 0260
102 0261
102 0560
;

proc sql;
create table want as select * from have where claimnumber not in (select claimnumber from have where code=0560);
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Apr 2020 19:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638774#M21605</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-04-09T19:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Claim can have certain diagnosis code but not a particular code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638909#M21623</link>
      <description>But i would also have to check if they have codes in ('0260','0261','0262','0263') because not every claim may have these codes.</description>
      <pubDate>Fri, 10 Apr 2020 12:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638909#M21623</guid>
      <dc:creator>Divya12</dc:creator>
      <dc:date>2020-04-10T12:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Claim can have certain diagnosis code but not a particular code</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638935#M21624</link>
      <description>&lt;P&gt;you may try the below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sql;
create table want as select * from have where claimnumber not in (select claimnumber from have where code=0560) and claimnumber in (select claimnumber from have where code in (0260,0261,0262,0263));
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Apr 2020 13:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Claim-can-have-certain-diagnosis-code-but-not-a-particular-code/m-p/638935#M21624</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-04-10T13:24:37Z</dc:date>
    </item>
  </channel>
</rss>

