A crematory may refuse to accept a decedent for or perform a cremation if:
A crematory shall accept a decedent for and perform a cremation upon receiving an order from a court directing the activity or upon receipt of sufficient documentation indicating that any dispute or other ground or reason for the initial refusal has been resolved.
A crematory is immune from liability for refusing to accept a decedent for cremation and for refusing to perform a cremation, in accordance with this section.
SDCL 34-26A-31