(a) The act of seeking, providing, or assisting with the provision of medical assistance for another person who is experiencing a medical emergency after ingesting or using alcohol or drugs may be used as a mitigating factor in a criminal prosecution of:
(1) the person who experienced the medical emergency; or
(2) any person who sought, provided, or assisted in the provision of medical assistance.
(b) A person who, in good faith, seeks, provides, or assists with the provision of medical assistance for a person reasonably believed to be experiencing a medical emergency after ingesting or using alcohol or drugs shall be immune from criminal arrest, charge, or prosecution for a violation of § 5–601, § 5–619, § 5–620, § 10–114, § 10–116, or § 10–117 of the Criminal Law Article if the evidence for the criminal arrest, charge, or prosecution was obtained solely as a result of the person’s seeking, providing, or assisting with the provision of medical assistance.
(c) A person who reasonably believes that the person is experiencing a medical emergency after ingesting or using alcohol or drugs shall be immune from criminal arrest, charge, or prosecution for a violation of § 5–601, § 5–619, § 5–620, § 10–114, § 10–116, or § 10–117 of the Criminal Law Article if the evidence for the criminal arrest, charge, or prosecution was obtained solely as a result of the person seeking or receiving medical assistance.
(d) A person who seeks, provides, or assists with the provision of medical assistance in accordance with subsection (b) or (c) of this section may not be sanctioned for a violation of a condition of pretrial release, probation, or parole if the evidence of the violation was obtained solely as a result of the person seeking, providing, or assisting with the provision of medical assistance.