BookmarkSubscribeRSS Feed
prjadhav00
Calcite | Level 5

 

Hello,

 

I am currently work on hospital utilization data where I can accross to the following questions:

 

"Amongst beneficiaries who have CHF, provide the crude rate of those with at least 1 visit to a Primary Care Provider

Office visits are defined using CPT codes: ‘99201’-‘99205’ & ‘99211’-‘99215’"

 

Could any one suggest me any PROC SQL query to get an appropriate output. 

 

Thanks in advance.

 

4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20

Can you provide us with some example data and what you want your desired result to look like? Makes it so much easier to provide a usable code answer 🙂

prjadhav00
Calcite | Level 5
Thanks for getting back to me.

suppose, the sample table:

CHF_BEN_ID CHF_DIG_CODES(character) CPT_CODES
1 39891
99201
2 40211
99205
3 40291
99211
4 40411
99215
5 40413
99205
6 40491
99201
7
39891 99215

from this I have to find crude rate of those with at least 1 visit to a
Primary Care Provider Office visits are defined using CPT codes:
‘99201’-‘99205’ & ‘99211’-‘99215’

ballardw
Super User

Is the problem selecting data or calculating the rate or both?

Reeza
Super User
I don't think we can answer this based on what you've provided. To find the crude rate you'd have to know the total population and then calculate how many people had an entry for that period of interest. In my experience these may not be in the same database, especially the denominator.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

New Learning Events in April

 

Join us for two new fee-based courses: Administrative Healthcare Data and SAS via Live Web Monday-Thursday, April 24-27 from 1:00 to 4:30 PM ET each day. And Administrative Healthcare Data and SAS: Hands-On Programming Workshop via Live Web on Friday, April 28 from 9:00 AM to 5:00 PM ET.

LEARN MORE

Discussion stats
  • 4 replies
  • 960 views
  • 0 likes
  • 4 in conversation