This is likely where such code should be added: https://github.com/mmcdermott/MIMIC_IV_MEDS/blob/main/src/MIMIC_IV_MEDS/download.py#L112
Ideally it could be done intelligently, using checksums or something else to ensure that downloads should not be repeated.