Admit Type
Maintenance Instructions
- Navigate to the ResDac Inpatient website
- Click "View Data Documentation" under the page title
- Locate and select the Variable Name "Claim Inpatient Admission Type Code"
- Open the .txt file at the bottom of the webpage
Follow steps 5-11 if there are any changes. Otherwise, skip to step 12
- Copy and paste the code list into any text editor
- Format the codes as a CSV file and save
- Find and replace "—" with a hyphen (-)
- 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/admit_type.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 updated codes into the admit type file
- Submit a pull request
- Create a branch in docs. Update the
last_updated
column in the table above with the current date - Submit a pull request