APR-DRG
Maintenance Instructions
- Navigate to the AHRQ HCUP website
- Click the header tab "Database Information"
- Click on the hyperlink "NIS Database Documentation"
- Under "Additional Resources for Data Elements" click on the hyperlink "APR-DRGs Methodology Overview Version 31"
- Scroll to the bottom of the PDF, copy and paste the codes found in "Appendix A - List of All Patient refined DRGs" into any text editor
- Format the codes as a CSV file and save
- Import the CSV file into any data warehouse
- Upload the CSV file from the data warehouse to S3 (credentials with write permissions to the S3 bucket are required)
-- example code for Snowflake
copy into s3://tuva-public-resources/terminology/apr_drg.csv
from [table_created_in_step_7]
file_format = (type = csv field_optionally_enclosed_by = '"')
storage_integration = [integration_with_s3_write_permissions]
OVERWRITE = TRUE;
- Create a branch in The Tuva Project
- Copy and paste the CSV formatted code list into the APR-DRG file
- Create a branch in docs. Update the
last_updated
column in the table above with the current date - Submit a pull request