BookmarkSubscribeRSS Feed
Pearljo
Calcite | Level 5

How do I correctly substring icd codes for diabetes

1 REPLY 1
ballardw
Super User

Some values of what you have and what you expect as a result.

 

SUBSTR function is one of the typical ways to extract starting at a given position. With out knowing your specific sets of ICD codes (9 and 10 come to mind) but different organizations are known to store the values with decimals/underscores/or just long strings.

 

Or are you in the same apparent class that these folks are:

https://communities.sas.com/t5/New-SAS-User/Type-2-diabetes-only-by-using-ICD-9-AN-D10-CODES/m-p/833...

https://communities.sas.com/t5/SAS-Programming/Diabetes-type-2-patient-identification/m-p/832214

 

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 688 views
  • 0 likes
  • 2 in conversation