Frustrated

My son was born 7/26 and we were suppose to be released today but they will not let us.

Reason why.. he lost 6.7% of his weight and he is breastfed even tried supplementing formula but he wants to sleep regardless of what we do. Now he has an appointment tomorrow any way with his pediatrician to get circumcised and to get checked in general. They told me that they will not let me go and to cancel my appointment for tomorrow they will do it here. Can they do that!!