The boss said that it was normal for me to get a health certificate and take away my ID card for several days.

Not normal.

Getting a health certificate has nothing to do with an ID card. I need to do it myself. I can give him a copy of my ID card.

Health certificate refers to the proof of preventive health examination, which proves that the examinee has the health quality to engage in the prescribed business.