In an action in which the mental or physical condition of a party or the consanguinity of a party with another person or party is in controversy, the court in which the action is pending may order such person or party to submit to a physical or mental examination or blood test by a physician. The order may be made only on motion for good cause shown and upon notice to the person or party to be examined and to all other persons or parties involved and shall specify the time, place, manner, conditions, and scope of the examination and the person or persons by whom it is to be made.
SDCL 15-6-35(a)