No idea why this is all messed up. Only thing I changed was doing a migration to add a phr_id to medications.