Add subsumed codes to period-to-date queries + make general ytd_patients_per_code function