Is it constitutional to require everyone to purchase health insurance

Is it constitutional to require everyone to purchase health insurance? Should the IRS have the authority to enforce the mandatory health insurance requirement and also have access to the individual citizens’ bank account to enforce regulation?