BookmarkSubscribeRSS Feed
leahcho
Obsidian | Level 7

Hi ,

I have a claims dataset that has RX look up file which contains NDC, GPI, and generic drug name

This is how the look up file looks like

So for example;

 

NDC                     generic name

12345678             aripiprazole HCL

12458999             aripiparzole

23456731             risperidone

45677888             aripiprazole

 

Because some generic names has two parts even though they are referring to the same medication (so aripiprazole HCL is the same drug as aripiprazole), I am not sure how to proceed.

 

I want to be able to group NDC and create a new variable to referred to it

so the new table should look like this

 

NDC                     generic name                  Drug

12345678             aripiprazole HCL              A

12458999             aripiparzole                      A

23456731             risperidone                       R

45677888             aripiprazole                       A

 

 

Thanks

 

 

 

 

2 REPLIES 2
leahcho
Obsidian | Level 7

Hi I wanted to add to my previous question.

 

What I actually need is to create a variable to link NDC to drug

 

For example,

 

if NDC (12345678  12458999   45677888) then drug=  A;

 

This is what I want to accomplish.

 

Thanks

                                

 

RW9
Diamond | Level 26 RW9
Diamond | Level 26
This isn't really a SAS programming question. In my industry coding of medications is done to MedDRA standards, generally automatically in the database by a coding group - i.e. specialist at matching codings to drugs. Its simple enough to group the items, maybe with a retain and catx() each together to get one unique then merge that data on, however coding is a bit more difficult that that as there are various spellings and connations you can't program for.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 578 views
  • 0 likes
  • 2 in conversation