B. The magistrate issuing the temporary detention order shall specify the law-enforcement agency to execute the order and provide transportation. However, the magistrate may authorize transportation by an alternative transportation provider, including a parent, family member, or friend of the minor who is the subject of the temporary detention order, a representative of the community services board, or other transportation provider with personnel trained to provide transportation in a safe manner upon determining, following consideration of information provided by the petitioner; the community services board or its designee; the local law-enforcement agency, if any; the minor's treating physician, if any; or other persons who are available and have knowledge of the minor, and, when the magistrate deems appropriate, the proposed alternative transportation provider, either in person or via two-way electronic video and audio or telephone communication system, that the proposed alternative transportation provider is available to provide transportation, willing to provide transportation, and able to provide transportation in a safe manner. When transportation is ordered to be provided by an alternative transportation provider, the magistrate shall order the specified primary law-enforcement agency to execute the order, to take the minor into custody, and to transfer custody of the minor to the alternative transportation provider identified in the order. In such cases any case in which a magistrate authorizes transportation of a minor subject to a temporary detention order by an alternative transportation provider, a copy of the temporary detention order shall accompany the minor being transported pursuant to this section at all times and shall be delivered by the alternative transportation provider to the temporary detention facility. The temporary detention facility shall return a copy of the temporary detention order to the court designated by the magistrate as soon as is practicable. Delivery of an order to a law-enforcement officer or alternative transportation provider and return of an order to the court may be accomplished electronically or by facsimile.
The order may include transportation of the minor to such other medical facility as may be necessary to obtain further medical evaluation or treatment prior to placement as required by a physician at the admitting temporary detention facility. Nothing herein shall preclude a law-enforcement officer or alternative transportation provider from obtaining emergency medical treatment or further medical evaluation at any time for a minor in his custody as provided in this section. Such medical evaluation or treatment shall be conducted immediately in accordance with state and federal law.