BookmarkSubscribeRSS Feed
V_27
Obsidian | Level 7

I want to flag the below criteria.

 

A given day involved a diagnosis or an imaging procedure, and look for up to 10 days after the given day and search for the same body-site or type of injury. If so, we will connect the days of the two sets of records. Using the latter-day as the reference, and we will repeat the procedure until we no longer observed a subsequent day with relevant diagnosis code within a 10-day window.

 

Thank you for the help!

1 REPLY 1
andreas_lds
Jade | Level 19

Please post the data as data step using datalines statement. In many companies downloading office-files is not allowed.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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