Pre-MDC
Pre-MDC DRGs are assigned before MDC logic runs, driven by the procedure rather than the principal diagnosis. On a grouped claim the API still reports the principal diagnosis's own MDC, so a heart transplant can come back as MDC 05.
In the order the grouper applies them, highest first. A patient with several procedures is assigned to the highest surgical class one of them belongs to, so this ordering decides the DRG, not the order procedures appear on the claim.
Surgical DRGs in this MDC that Appendix D does not rank.