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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 419 views
  • 0 likes
  • 2 in conversation