The detention of a person in good faith and not in excess of the period of time specified in § 27A-12-27.2 may not render any law enforcement official, agency, institution, board, court, physician, inpatient facility, or staff detaining the person liable in any criminal or civil action for false arrest or false imprisonment.
SDCL 27A-12-27.3