Any member of the militia who shall have been ordered out for either state or federal service and who shall refuse or wilfully or negligently fail to report at the time and place and to the officer designated in the order or to the representative or successor of such officer, shall be deemed guilty of desertion, and shall suffer such penalty as a general court martial may direct, unless he or she shall produce a sworn certificate from a licensed physician of good standing that he or she was physically unable to appear at the time and place designated. Any person chargeable with desertion under this section may be taken by force and compelled to serve.