(a) A law enforcement officer having custody of a person shall not release such person from custody merely to avoid the cost of necessary medical treatment while the person is receiving treatment from a health care provider unless the health care provider consents to such release, or unless the release is ordered by a court of competent jurisdiction. When the law enforcement officer is satisfied that probable cause no longer exists to believe the suspect committed a crime based upon the ongoing investigation, or the prosecuting attorney gives notice that no prosecution will be forthcoming at this time, the law enforcement officer may release such person from custody. Upon the date of notification to the health care provider that the person is being released from custody because the ongoing investigation indicates that probable cause no longer exists or a decision by the prosecuting attorney that no charges will be filed, the law enforcement agency shall no longer be responsible for the cost of such person’s medical treatment.(b) As used in this section:
(1) “Law enforcement officer” has the meaning ascribed thereto in K.S.A. 22-2202, and amendments thereto.(2) “Health care provider” has the meaning ascribed thereto in K.S.A. 22-4612, and amendments thereto.