Sec. 117. (a) Except as provided in subsection (b), "shelter care facility", for purposes of the juvenile law, means a place of residence that:
(1) is licensed under the laws of any state; and
(2) is not locked to prevent a child's departure unless the administrator determines that locking is necessary to protect the child's health.
(b) "Shelter care facility", for purposes of IC 31-27-3 and IC 31-27-5, means a child caring institution or group home that provides temporary service twenty-four (24) hours a day for not more than twenty (20) consecutive days to a child:
(1) who is admitted to a residential facility on an emergency basis; and
(2) who is:
(A) receiving care and supervision under an order of a juvenile court;
(B) voluntarily placed by the parent or guardian of the child; or
(C) self-referred.