This is a declaratory judgment action to determine the legal effect of subrogation provisions in policies of automobile insurance issued by defendant to plaintiff. Plaintiff has appealed from an order granting defendant’s motion for summary judgment. We affirm.
On June 23, 1972, plaintiff’s 16-year-old daughter, Pamela Schuldt, a resident of plaintiff’s household, was injured when the automobile in which she was riding, owned and operated by a third party, was involved in an accident. As a result of the injuries suffered in this accident, Miss Schuldt incurred medical expenses in the amount of $2,603.45.
On the date of the accident, there were in full force and effect three separate policies of insurance that defendant had issued to plaintiff. These policies provided for payment of reasonable medical expenses incurred for services furnished to plaintiff or any member of his household who sustained bodily injury caused by accident, such coverage also applying to the occupancy of a non-owned automobile by plaintiff or relatives residing in his household.
Each of these policies contained a provision stating that:
“Subrogation. * * *
*689“Upon payment under coverages C and M of this policy the company shall be subrogated to the extent of such payment to the proceeds of any settlement or judgment that may result from the exercise of any rights of recovery which the injured person or anyone receiving such payment may have against any person or organization and such person shall execute and deliver instruments and papers and do whatever else is necessary to secure such rights. Such person shall do nothing after loss to prejudice such rights.”
Plaintiff states that defendant refused to pay the above described medical expenses until plaintiff signed a loan receipt, the terms of which required plaintiff to agree to repay the amount advanced for medical expenses in the event he made recovery against any third party on account of the personal injuries sustained by his daughter in the accident in question. Defendant states in its brief that it has in fact paid medical benefits pursuant to the policies in question. In any event, plaintiff commenced this declaratory judgment action attacking the validity of the above quoted subrogation clause.1
Plaintiff contends that the subrogation clause in question is invalid because it constitutes an attempted assignment of a claim for personal injuries in violation of the common law rule proscribing such assignments and because it is an attempt by defendant to contravene the provisions of SDCL 58-23-7 and 58-23-8(3), which require companies writing automobile liability insurance policies to offer medical payments coverage as a part of such policies.2
*690Similar subrogation clauses have been upheld by the overwhelming majority of those courts that have had occasion to rule on their validity. See, e. g., Rinehart v. Farm Bureau Mutual Ins. Co. of Idaho, Inc., 96 Idaho 115, 524 P.2d 1343 (see the exhaustive list of cases cited in notes 1 and 2, 96 Idaho at 117, 524 P.2d at 1345); Imel v. Travelers Indemnity Co., Ind.App., 281 N.E.2d 919; National Union Fire Ins. Co. v. Grimes, 278 Minn. 45, 153 N.W.2d 152; Geertz v. State Farm Fire & Cas., 253 Or. 307, 451 P.2d 860; Annot., 19 A.L.R.3d 1054.
This court has stated that “It is a well settled rule of law that an insurer is entitled to subrogation, either by contract or in equity for the amount of the indemnity paid.” Parker v. Hardy, 73 S.D. 247, 248, 41 N.W.2d 555, 556. In keeping with that principle, we conclude that as set forth in the above cited representative cases, the majority rule upholding the validity of an insurer’s subrogation rights under medical payments coverage is sound and should be followed.
With respect to the argument regarding the attempted assignment of a personal injury claim, there is a distinction between an assignment of a claim for personal injuries and subrogation, as was stated by the court in Imel v. Travelers Indemnity Co., supra:
“We agree with the majority of the jurisdictions which make a distinction between an assignment of a claim for personal injuries and subrogation of one’s rights arising from a personal injury. A few of the distinctions are: subrogation secures contribution and indemnity, whereas assignment transfers the entire claim; *691the consideration in subrogation moves from subrogor to subrogee, whereas in an assignment the consideration flows from assignee to assignor; assignment contemplates the assignee being a volunteer, whereas subrogation rests on a contractual duty to pay; assignment normally covers but a single claim, whereas subrogation may include a number of claims over a specific period of time; subrogation entails a substitution, whereas assignment is an outright transfer.” (citations omitted) 281 N.E.2d at 921.
Plaintiff argues that our decision in Westphal v. Amco Ins. Co., 87 S.D. 404, 209 N.W.2d 555, mandates the conclusion that the clause in question is invalid. In Westphal, we held invalid an “other insurance” provision of an insured’s uninsured motorist coverage. Plaintiff argues that the same considerations that governed in Westphal apply in the instant case. We do not agree. No subrogation clause was at issue in the Westphal case, and the decision did not stand for the proposition that the insured could' recover under his uninsured motorist coverage and then later recover from the uninsured motorist without reimbursing his insurer to the extent of the earlier payment. Cf. SDCL 58-11-9.1 and 58-11-9.6. We note that one of the principal decisions relied upon by this court in Westphal recognized that subrogation rights under medical payments coverage were not inconsistent with a holding that the “other insurance” provision of uninsured motorist coverage was invalid. Van Tassel v. Horace Mann Ins. Co., 296 Minn. 181, 207 N.W.2d 348.
We conclude that the subrogation clause involved in the three policies in question is not invalid and that the trial court correctly granted defendant’s motion for summary judgment.
The order granting summary judgment is affirmed.
DUNN, C. J., and COLER, J., concur. WINANS and DOYLE, JJ., concur specially.. Although the trial court made no determination on the merits of plaintiffs purported class action suit, the court did make an express determination that there was no just reason for delay of entry of judgment against plaintiff and expressly determined that final judgment should be'entered against the claim of plaintiff for himself and as guardian ad litem for Pamela Schuldt. See SDCL 15-6-54(b); Cf. Shryock v. Mitchell Concrete Products, Inc., 87 S.D. 566, 212 N.W.2d 498; Brasel v. City of Pierre, 87 S.D. 561, 211 N.W.2d 846.
. , SDCL 58-23-7:
“No application for an automobile liability policy may be taken with respect to any automobile registered or principally garaged in this state unless the supplemental coverages set forth in SDCL 58-23-8 are offered to the named *690insured who shall have the right to reject in writing all or any one or more of such coverages.”
SDCL 58-23-8:
“Supplemental insurance coveráges shall as a minimum include: * * *
(3)indemnity to the named insured and to any other insured, irrespective of legal liability, for medical expenses in an aggregate amount of at least two thousand dollars for each such injured person, incurred within two years from the date of the accident by reason of bodily injuries arising out of the use of the automobile described in the policy or through being struck by a motor vehicle while a pedestrian.”