Backfill studies for health codes

The try and the catch are really similar. Maybe consolidate to a helper function that takes the operation as a string.