Women who were prescribed direct-acting antivirals prior to hospital discharge were more likely to complete their regimens.