Skip to content

fensorechase/AHRQ_pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AHRQ_pipeline

Libraries/Packages

(R workspace) Load Libraries:

  • caret
  • data.table
  • dplyr
  • sets
  • scales
  • tidyr
  • stringr

(Python workspace) Load packages:

  • json
  • pandas

Folder Structure

  • After downloading Data folder from specified OneDrive:
.
├── AHRQ_pipeline
│   ├── compress_pharma.py
│   ├── merge_AHRQ.Rmd
│   ├── gp_zipdata.json
│   └── fsq_zipdata.json
└── Data: download from OneDrive
    ├── AHRQ
    │   ├── COUNTY
    │   ├── TRACT
    │   └── ZIP
    └── GA_Pharmacy_Data_gp_fsq

Summary of functionality:

  1. merge_AHRQ.Rmd: reads all available years of AHRQ SDOH data at ZIP code level. Generates summary plots, and includes template to merge SODH with patient data by ZIP code, year.
  2. compress_pharma.py: reads Georgia pharmacy locations, and generates summary statistics by writing a json file with zip codes (key) and the number of pharmacies in that zip code (value).

Merge Data: recommended approaches for merging this SDOH data with patient data.

Merge the preprocessed AHRQ data with patient data using crosswalk variables:

  • STATEFIPS
  • ZIPCODE
  • YEAR Merge the Georgia pharmacy location data with patient data using crosswalk variables:
  • zipcode
  • can optionally select either 'gp' or 'fsq' as the data source for Georgia pharmacy location data (see gp_zipdata.json, fsq_zipdata.json), or use both sources combined (

The raw AHRQ SDOHD data used in this notebook can be accessed from the following link:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages